package com.cxhc.system.service.app.impl;

import java.util.List;

import com.cxhc.system.domain.app.GroupUser;
import com.cxhc.system.mapper.app.GroupUserMapper;
import com.cxhc.system.service.app.IGroupUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 审批的组员Service业务层处理
 * 
 * @author Dhq
 * @date 2024-08-06
 */
@Service
public class GroupUserServiceImpl implements IGroupUserService
{
    @Autowired
    private GroupUserMapper groupUserMapper;

    /**
     * 查询审批的组员
     * 
     * @param id 审批的组员主键
     * @return 审批的组员
     */
    @Override
    public GroupUser selectGroupUserById(Long id)
    {
        return groupUserMapper.selectGroupUserById(id);
    }

    /**
     * 查询审批的组员列表
     * 
     * @param groupUser 审批的组员
     * @return 审批的组员
     */
    @Override
    public List<GroupUser> selectGroupUserList(GroupUser groupUser)
    {
        return groupUserMapper.selectGroupUserList(groupUser);
    }

    /**
     * 新增审批的组员
     * 
     * @param groupUser 审批的组员
     * @return 结果
     */
    @Override
    public int insertGroupUser(GroupUser groupUser)
    {
        return groupUserMapper.insertGroupUser(groupUser);
    }

    /**
     * 修改审批的组员
     * 
     * @param groupUser 审批的组员
     * @return 结果
     */
    @Override
    public int updateGroupUser(GroupUser groupUser)
    {
        return groupUserMapper.updateGroupUser(groupUser);
    }

    /**
     * 批量删除审批的组员
     * 
     * @param ids 需要删除的审批的组员主键
     * @return 结果
     */
    @Override
    public int deleteGroupUserByIds(Long[] ids)
    {
        return groupUserMapper.deleteGroupUserByIds(ids);
    }

    /**
     * 删除审批的组员信息
     * 
     * @param id 审批的组员主键
     * @return 结果
     */
    @Override
    public int deleteGroupUserById(Long id)
    {
        return groupUserMapper.deleteGroupUserById(id);
    }
}
